const Generator = require('yeoman-generator')

module.exports = class extends Generator {
    // 写入文件
    writing () {
        // this.fs.write(
        //     this.destinationPath('temp.txt'),
        //     Math.random().toString()
        // )
         const tmpl = this.templatePath('foo.txt')
         const output = this.destinationPath('foo.txt')

         const content = { title: 'Hello zce~', success:false}

         this.fs.copyTpl(tmpl, output, content)
    } 
}